<template>
  <div id="container" height="350px" width="250px">

  </div>
</template>

<script>
import AMapLoader from "@amap/amap-jsapi-loader";
  export default {
    mounted () {
      //地图
    window._AMapSecurityConfig = {
            securityJsCode:'02f4173342df913bb299c15041ed0480',
        },
    AMapLoader.load({
      key: "662c150dd3725648b5cf59267bf6e391", 
      version: "2.0", // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
      plugins: [], // 需要使用的的插件列表，如比例尺'AMap.Scale'等
    }).then((AMap) => {
      // let container = document.getElementById('container')
        let map = new AMap.Map("container");
        console.log('map:',map);
      }).catch((e) => {
        console.log(e);
      });
    },
  }
</script>

<style lang="scss" scoped>

</style>